package com.okbihuo.perm.component.file.service;


import com.okbihuo.perm.component.file.domain.ComFileReference;
import com.okbihuo.perm.core.mp.base.MyService;

/**
 * 文件引用接口
 * @author stt
 */
public interface ComFileReferenceService extends MyService<ComFileReference> {

    /**
     * 获取引用记录
     * @param key
     * @param fileId
     * @return
     */
    ComFileReference getByByKeyAndFileId(String key, Long fileId);
    /**
     * 删除引用记录
     * @param key
     * @param fileId
     * @return
     */
    boolean delByKeyAndFileId(String key, Long fileId);
}
